<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.lbi.core.helper.Attach</title><script src="../../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../../index-files";
//--></script><link href="../../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.lbi.core.helper" rel="up"/><link href="../../../../com/lbi/core/helper/Delegate.html" title="Class com.lbi.core.helper.Delegate" rel="prev"/><link href="../../../../com/lbi/core/events/IEvents.html" title="Interface com.lbi.core.events.IEvents" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.lbi.core.helper.Attach</h1><div class="type_hierachy"><ul><li><strong>com.lbi.core.helper.Attach</strong></li></ul></div><div class="type_description"><h2>Description</h2><p>
 	LBi Useful ActionScript 2 Library
    Copyright (C) 2007 LBi / Michael Forrest

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 

 </p></div><div class="type_indexes"><div class="method_index"><h2>Method Index</h2><a href="#MovieClipClass" title="static public function MovieClipClass($parent:MovieClip, $class:Function, $depth:Number, $args:Array, init_obj:Object)">MovieClipClass()</a>, <a href="#TextField" title="static public function TextField($parent:MovieClip, style:TypographyBase, depth:Number, rectangle:Rectangle):TextField">TextField()</a></div></div><div class="type_details"><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="MovieClipClass"></a><h3>MovieClipClass</h3><code class="method_synopsis">static public function <strong class="method_name">MovieClipClass</strong>($parent:<span class="unresolved_type_name">MovieClip</span>, $class:<span class="unresolved_type_name">Function</span>, $depth:<span class="unresolved_type_name">Number</span>, $args:<span class="unresolved_type_name">Array</span>, init_obj:<span class="unresolved_type_name">Object</span>)</code><div class="method_info"><p>
 Used to instantiate Classes that are extensions of the MovieClip class. Used like  
 attachMovie(), but with additional specification of target (must be or extend MovieClip) 
 and class (likewise) to use. 
 
 </p><h4>Parameters</h4><table class="arguments extra_info" summary=""><tr><td><code>$parent</code></td><td>: any class extending MovieClip - this is where the new clip will be placed
 </td></tr><tr><td><code>$class</code></td><td>: the classpath of the class to instantiate  
 </td></tr><tr><td><code>init_obj</code></td><td>- optional  as in MovieClip.AttachMovie - object (associative array) containing all initialisation parameters
 
 </td></tr></table></div></div><div class="method_details"><a name="TextField"></a><h3>TextField</h3><code class="method_synopsis">static public function <strong class="method_name">TextField</strong>($parent:<span class="unresolved_type_name">MovieClip</span>, style:<a href="../../../../com/lbi/typography/TypographyBase.html" class="class_name" title="Class com.lbi.typography.TypographyBase">TypographyBase</a>, depth:<span class="unresolved_type_name">Number</span>, rectangle:<span class="unresolved_type_name">Rectangle</span>):<span class="unresolved_type_name">TextField</span></code><div class="method_info"><p>
 <pre>
 Example
 // TypographyClass extends TypographyBase
 var style:TypographyClass = new TypographyClass("StyleName");
 var txt:TextField = AttachTextField.create(this,style);
 
 </pre>
	 </p></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../../overview-summary.html" title="Overview of API" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.lbi.core.helper" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="../../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>